package cn.luckywh.dao;

import cn.luckywh.pojo.Teacher;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author w.
 * @date 2020/11/26 17:43
 */
public interface TeacherMapper {


    @Select("select * from teacher")
    List<Teacher> getTeachers();


    Teacher getTeacher(@Param("tid") Integer id);

    Teacher getTeacher2(@Param("tid") Integer id);
}
